package creative.fire.interview.study;

/**
 * @author feuyeux@gmail.com 2011-2-15
 */
public class MultiLoop {

	public static void main(String[] args) {
		iloop: for (int i = 0; i < 5; i++) {
			jloop: for (int j = 0; j < i; j++) {
				for (int k = 0; k < j;) {
					if (k == 1) {
						System.out.println(k + "*");
						break iloop;
					} else {
						System.out.println(k + "@");
						continue jloop;
					}
				}
			}
			System.out.println(i + "...");
		}

		for (int i = 0; i < 3; i++) {
			System.out.print(" i:" + i);
			for (int j = 0; j < 3; j++) {
				System.out.print(" j:" + j);
				for (int k = 0; k < 3; k++) {
					if (k == 1) {
						System.out.print(" k:" + k);
					} else
						break;
				}
			}
		}
	}
}
